package in;
abstract class Xing
{
    String name;
    abstract public void draw();
    abstract  void count();
    Xing(String name)
    {
        this.name=name;
    }

}
class Cycle extends Xing
{
    //String name;
    String silly;
    public Cycle(String name,String silly)
    {
        super(name);
        this.silly=silly;
    }
    int age;
    public void draw()
    {
        System.out.println(name+"正在画三角形");

    }
    void count()
    {
        System.out.println(name+"正在数三角形");
    }

}
class Animal
{
    String name;
    public Animal(String name)
    {
        this.name=name;
    }

}
class Dog extends Animal {
    //String name;
    int age;

    public Dog(String name, int age) {
        super(name);
        this.age = age;
    }




}




 public class Shape {
     public static void main(String[] args) {
         Dog dog1=new Dog("wang",7);
         Dog dog2=new Dog("wang",7);
         System.out.println(dog1.equals(dog2));

     }
    /* public static void main2(String[] args) {
         Object e = new Person();
     }
     public static void main1(String[] args) {
         Cycle a=new Cycle("wang","傻");
         a.draw();



     }
     */




}
